package com.fs.iot.service;

import com.fs.common.base.service.BaseService;
import com.fs.iot.bean.dto.AlarmDefinePublishedDTO;
import com.fs.iot.bean.query.AlarmDefinePublishedQuery;

import java.util.List;

/**
 * 报警定义服务接口 
 * @author Coder Generator 2025-03-25 09:08:32 
 **/
public interface AlarmDefinePublishedEntityService extends BaseService<AlarmDefinePublishedDTO, AlarmDefinePublishedQuery> {
    /**
     * 根据模型编号查找报警定义记录
     */
    default List<AlarmDefinePublishedDTO> findByModel(String modelId) {
        return this.queryBuilder()
                .eq("model_id", modelId)
                .query();
    }
}